package top.fengyulou.xiaofeng.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import top.fengyulou.xiaofeng.common.entity.BaseEntity;

import java.util.Date;

@Data
public class Exam extends BaseEntity {
    //考试名称
    private String name;
    //开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm", timezone = "GMT+8")
    private Date startTime;
    //结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:ss:mm")
    @JsonFormat(pattern = "yyyy-MM-dd HH:ss:mm", timezone = "GMT+8")
    private Date endTime;
    //试卷数量
    private Long paperNum;
    //用户数量
    private Long userNum;
    //简单说明
    private String description;
}